package com.competition.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "hot_news")
public class HotNews {

    @Id
    @Column(name = "hot_news_id")
    private String hotNewsId;

    @Column(name = "hot_news_content")
    private String hotNewsContent;

    @Column(name = "hot_news_title")
    private String hotNewsTitle;

    @Column(name = "hot_news_img")
    private String hotNewsImg;

    @Column(name = "hot_news_count")
    private Integer hotNewsCount;




}
